import service from '@/utils/requset';

export function getPortaProduct() {
  return service({
    url: '/nfgogo-api/a/portal/product',
    method: 'post',
    loading: true,
  });
}

export function getPortanfcar(params) {
  return service({
    url: '/nfgogo-api/a/portal/nfcar',
    params,
    method: 'post',
    loading: true,
  });
}

export function getCountStatistic() {
  return service({
    url: '/nfgogo-api/a/portal/statistic',
    method: 'post',
  });
}

export function getPortSkuList(params) {
  return service({
    url: '/nfgogo-api/a/portal/skuList',
    method: 'post',
    params,
    loading: true,
  });
}

export function getOrderConfirm(data) {
  return service({
    url: '/nfgogo-api/b/nf/order/confirm',
    method: 'post',
    data,
    loading: true,
  });
}

export function creatPaymentIntent(data) {
  return service({
    url: '/nfgogo-api/b/nf/order/stripe/create-payment-intent',
    method: 'post',
    data,
    loading: true,
  });
}
